//
//  WQFontFitTool.m
//  WQFontFitToolDemo
//
//  Created by Xiang on 2021/5/12.
//

#import "WQFontFitTool.h"

@implementation WQFontFitTool

+ (nullable UIFont *)getFontSizeWithType:(WQFontType)fontType size:(CGFloat)fontSize{
    UIFont *font;
    switch (fontType) {
        case WQFontTypeOne:
            font = [UIFont fontWithName:@"HelveticaNeue-UltraLight" size:fontSize];
            break;
        case WQFontTypeTwo:
            font = [UIFont fontWithName:@"HelveticaNeue-Thin" size:fontSize];

            break;
        case WQFontTypeThree:
            font = [UIFont fontWithName:@"HelveticaNeue-Light" size:fontSize];
            
            break;
        case WQFontTypeFour:
            font = [UIFont fontWithName:@"HelveticaNeue" size:fontSize];

            break;
        case WQFontTypeFive:
            font = [UIFont fontWithName:@"HelveticaNeue-Medium" size:fontSize];

            break;
        case WQFontTypeSix:
            font = [UIFont fontWithName:@"HelveticaNeue-Bold" size:fontSize];
            break;
  
        default:
            font = [UIFont fontWithName:@"HelveticaNeue" size:fontSize];
            break;
    }
    
    return font;
    
    
    
}

@end
